package com.bookmarket.service.impl;

import com.bookmarket.dao.AdminMapper;
import com.bookmarket.entity.Admin;
import com.bookmarket.service.IAdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("adminService")
public class IAdminServiceImpl implements IAdminService {
  @Resource
  private AdminMapper adminMapper;
    @Override
    public Admin login(String name, String pass) {

        return adminMapper.login(name, pass);
    }

    public AdminMapper getAdminMapper() {
        return adminMapper;
    }

    public void setAdminMapper(AdminMapper adminMapper) {
        this.adminMapper = adminMapper;
    }
}
